package com.itheima.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 用户
 */
public class User implements Serializable{
    private Integer user_id; // 主键
    private String loan_card_id; // 借阅证号
    private String user_name; // 姓名
    private String user_password; // 密码
    private String state; // 状态
    private Integer borrowed_number; // 已借阅数
    private Integer max_number; // 最大借阅数
    private String code;//验证码
    private Set<Role> roles = new HashSet<Role>(0);//对应角色集合

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getLoan_card_id() {
        return loan_card_id;
    }

    public void setLoan_card_id(String loan_card_id) {
        this.loan_card_id = loan_card_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_password() {
        return user_password;
    }

    public void setUser_password(String user_password) {
        this.user_password = user_password;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Integer getBorrowed_number() {
        return borrowed_number;
    }

    public void setBorrowed_number(Integer borrowed_number) {
        this.borrowed_number = borrowed_number;
    }

    public Integer getMax_number() {
        return max_number;
    }

    public void setMax_number(Integer max_number) {
        this.max_number = max_number;
    }

    public Set<Role> getRoles() {
        return roles;
    }

    public void setRoles(Set<Role> roles) {
        this.roles = roles;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
